package org.project.single.utils;

import cn.hutool.crypto.digest.MD5;
import org.stone.project.baseCommon.pojo.constant.SysPropConstant;

public class Md5Util {
    private static MD5 md5 = MD5.create();

    /**
     * 字符串md5加密
     * @param str
     * @return
     */
    public static String encodeData(String str){
        return md5.digestHex(str, SysPropConstant.UTF_8);
    }
}
